package com.example.qxfw.qxxx.service.impl;

import com.example.qxfw.common.entity.qx.Satellitenephoram;
import com.example.qxfw.qxxx.mapper.SatellitenephoramMapper;
import com.example.qxfw.qxxx.service.SatellitenephoramService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.sql.Timestamp;
import java.util.List;

@Service
public class SatellitenephoramServiceImpl implements SatellitenephoramService {

    @Autowired
    private SatellitenephoramMapper satellitenephoramMapper;

    @Override
    public List<Satellitenephoram> getList(String ytType, String timeStart, String timeEnd) {

        System.err.println(ytType);
        System.err.println(timeStart);
        System.err.println(timeEnd);

        List<Satellitenephoram> satellitenephorams = satellitenephoramMapper.selectList(ytType, Timestamp.valueOf(timeStart), Timestamp.valueOf(timeEnd));
        return satellitenephorams;
    }
}
